<template>
  <div class="child">
     <h1>我是子组件2，我也可以获得父组件的provide：{{lalal}} </h1>
     <h1>我是子组件2，我看看能否获得兄弟组件的provide：{{test}} </h1>
  </div>
</template>

<script setup lang="ts">
import { inject } from 'vue';
import Child from './GrandChild.vue';

let lalal = inject('TOKEN');
let test = inject('test');


</script>

<style scoped>
.child{
  width: 300px;
  height: 400px;
  background: yellowgreen;
}
</style>